version 1.0

final version, commented code and finalized