some progress in q1. Need codeblocks, eclipse sucks ass