Fix bug in repr method
Restructuring, documentation, licence to prepare for packaging