Some restructuring,  added compilation, updated readme file.