added README, and fragmented the code some

Signed-off-by: Alexander Skjolden <alex@plastboks.net>