fixed get free memory method on Linux, and TODO's (check TODO.txt)