First congrats on losing the 36lbs!
Next what are your goals? Are you near your goal weight? or do you need to lose another 50lbs?
What are your training goals? Strength, Size, Endurance, Athletic competition?
If you still need to lose weight, keep cutting. If you are where you want to be weight wise, then look at your training/programing which includes your diet.
To gain mass, you will have to be in a caloric surplus. If you have solid programming, then the weight you gain will mostly be lean mass.
I dropped a little over 70lbs earlier this year (started in 2013). I started barbell training (Starting Strength) in April. I've gain about 12 lbs back from my lowest but have been steady at my current weight. My lifts get better and I can see the changes in the mirror.
Time, discipline, and consistency in your training, diet and recovery, will go a long way.
Good Luck!