Bug with returning invalid dimnesions of function fixed. Code refactoring.
Makefile for linux removed.