Started to write focapy module
Additional work on separating focapy into a module